/* eslint-disable no-unused-vars */
import Taro from "@tarojs/taro";

const localHost = "http://127.0.0.1:8888";
const devHost = "https://center.iya101.com/turing-api";
const proHost = "https://center.iya101.com/turing-api";

export function host() {
    const accountInfo = Taro.getAccountInfoSync();
    const envVersion = accountInfo.miniProgram.envVersion;

    if (envVersion === 'develop') {
        return localHost;
    } else if (envVersion === 'trial') {
        return proHost;
    } else if (envVersion === 'release') {
        return proHost;
    }
    return proHost;
}

export function getTenantId() {
    // 巨猩科技
    return 1
}
